package cn.ges.page

/**
 * @author gespent@163.com
 * @date 2020/05/19 17:24
 */
class PageHelper {
    companion object {
        fun getActualLimitString(size: Int, current: Int): String? {
            return "LIMIT " + getActualStartNumber(size, current) + "," + size
        }

        fun getActualStartNumber(size: Int, current: Int): Int {
            return Math.abs(current - 1) * size
        }
    }
}